package com.dxy.user;

import com.dxy.common.config.EnableMvcConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@EnableDiscoveryClient
@SpringBootApplication
@MapperScan(basePackages = {"com.dxy.user.mapper"})
// 此处增加common模块中的扫描路径时要注意把原来SpringBoot项目的根路径也要加上，不然会覆盖@SpringBootApplication中的路径
//@ComponentScan(basePackages = {"com.dxy.user","com.dxy.common"})
@EnableMvcConfig
public class UserApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }
}
